package heap;

public class HeapSort {
	public static void main(String[] args) {
		Heap h = new Heap();
		h.Push(2);
		h.Push(1);
		h.Push(4);
		h.Push(6);
		System.out.println(h.Top());
		h.Pop();
		System.out.println(h.Top());
		h.Pop();
		System.out.println(h.Top());
		h.Pop();
		System.out.println(h.Top());
	}
}
